﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Comet
{
    [Serializable]
    public class CometConfiguration : ICometConfiguration
    {
        private string url = null;
        private string userName;
        private string password;

        public string Url
        {
            get { return url; }
            set { url = value; }
        }
        public string UserName
        {
            get { return userName; }
            set { userName = value; }
        }
        public string Password
        {
            get { return password; }
            set { password = value; }
        }

        public void SetPassword(string password)
        {
            this.password =
                Pixysoft.Security.Base64.Encript(
                Pixysoft.Security.DES.Encrypt(password, StringHelper.global_framework_id));
        }
    }
}
